package com.wr.recruit.service.dao.repo;

import com.wr.recruit.service.dao.dbo.DepartmentDbo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface DepartmentRepo extends JpaRepository<DepartmentDbo,Integer>, JpaSpecificationExecutor<DepartmentDbo> {

    DepartmentDbo findAllByDepartmentCode(String departmentCode);

    DepartmentDbo findAllByDepartmentName(String departmentName);

    DepartmentDbo findAllByDepartmentNameAndAndCompanyCode(String departmentName, String companyCode);
}
